# -*- coding:utf-8 -*-

# 通过 id查找
def FindId(driver,id):

    return driver.find_element_by_id(id)

# 通过 class查找
def FindClaas(driver,cls):

    return driver.find_element_by_class_name(cls)

# 通过 name查找
def FindName(driver,name):

    return driver.find_element_by_name(name)

# 通过文字查找
def FIndLink(driver,text):

    return  driver.find_element_by_link_text(text)

# 通过局部文字查找
def FindPart(driver,parttext):

    return  driver.find_element_by_partial_link_text(parttext)

# 通过 xpath 查找
def FindXpath(driver,xpath):

    return driver.find_element_by_xpath(xpath)

# 通过css查找
def FindXss(driver,css):

    return driver.find_element_by_css_selector(css)

# 通过tag_name
def FindTAGname(driver,tag):

    return driver.find_element_by_tag_name(tag)


# 查询一组元素 class
def FIndClsses(derver,cls):

    return driver.find_elements_by_class_name(cls)
